home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11052 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Float to String
  5. Date: 21 Mar 1996 10:38 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <21MAR199610385203@erich.triumf.ca>
  9. References: <4is29s$h1a@dfw-ixnews6.ix.netcom.com>
  10. NNTP-Posting-Host: ftp.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4is29s$h1a@dfw-ixnews6.ix.netcom.com>, scoshe@ix.netcom.com(Christopher Scott Shelton ) writes...
  14. >Is it possible to convert a float to a string?  like the itoa function.
  15.  
  16. use sprintf()
  17.  
  18.  
  19. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  20. Internet: bennett@triumf.ca         | of one another only when one can be
  21. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  22. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  23. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  24. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  25.  
  26.